package com.jar.exercise.坑爹的面试题;

/**
 * @author 松鼠
 * @date 2019/6/21 -  20:25
 */
public class Demo4 {
	public static void main(String[] args) {
		//包装类以后用 equals
		Integer n1 = 100;
		Integer n2 = 100;

		Integer n3 = 128;
		Integer n4 = 128;
		//从缓存中比较没有new所以true
		System.out.println(n1 == n2);
		//这个new了 比较对象地址 false
		System.out.println(n3 == n4);
	}
}
